package com.thread.waitnotify;

public class Producer implements Runnable {

    private Product product = null;

    public Producer(Product product) {
        this.product = product;
    }

    @Override
    public void run() {

    	for(int i=0; i< 50; i++){
    		//每循环一次向data中放一个数据
    		product.produce();
        }

    }

}